<template>
	<div class="pop pos-a" :style="{ left: pop_x + 'px' ,top: pop_y + 'px'}"  ref="refName" @click.stop="getRef">
	    <ul>
	        <li>编辑部门</li>
	        <li @click.stop="append">添加子部门</li>
	    </ul>
	</div> 
</template>



<script>
export default {
	data() {
		return {
			pop_x: 100,
			pop_y: 100,
		}
	},
	methods: {
		getRef() {
			console.log('getRef',this.$refs.refName);
		},
		append() {
			console.log("添加zifumeng");
		}
	}
}	
</script>

<style lang='scss'>
.pop{
	color: #666;
	width: 100%;
	height: 100%;
}	
.pop-a{
	background: red;
}
</style>